package modles

type Video struct {
	Author        int    `gorm:"column:author;type:int" json:"author"`
	PlayUrl       string `gorm:"column:play_url;type:varchar(255)" json:"play_url"`
	CoverUrl      string `gorm:"column:cover_url;type:varchar(255)" json:"cover_url"`
	FavoriteCount int    `gorm:"column:favorite_count;type:int" json:"favorite_count"`
	CommentCount  int    `gorm:"column:comment_count;type:int" json:"comment_count"`
	Title         string `gorm:"column:title;type:varchar(10)" json:"title"`
}

func (table *Video) TableName() string {
	return "video"
}
